package org.hibernate.tool.ant;

import com.xcesys.extras.tool.task.ExtrasToolTask;

public abstract class BaseExtrasExporterTask extends ExporterTask {

	private String packageName;

	public BaseExtrasExporterTask(HibernateToolTask parent) {
		super(parent);
	}

	public String getName() {
		return "Extras Dao,Service,Action (Generates a set of .java files)";
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}

	public String getPackageName() {
		if (this.packageName == null || "".equals(packageName)) {
			if (parent instanceof ExtrasToolTask) {
				this.packageName = ((ExtrasToolTask) parent).getPackageName();
			}
		}
		return packageName;
	}

}
